<template>
    <div class="page-container">
        <div class="info">
            <div class="title">
                <div class="id">合同单号：{{ route.query.id }}</div>
                <div class="state">
                    <div class="ReviewedState">
                        <div class="ReviewedState-title">订单状态</div>
                        <div class="ReviewedState-title">通过</div>
                    </div>
                </div>
            </div>
            <div class="content">
                <el-descriptions size="large" :column="4">
                    <el-descriptions-item label="客户：">重庆市汉斯安海酉阳进出口有限公司</el-descriptions-item>
                    <el-descriptions-item :span="3" label="公司：">君禾泵业股份有限公司</el-descriptions-item>
                    <el-descriptions-item label="创建时间：">2024-05-01 17:28</el-descriptions-item>
                    <el-descriptions-item label="创建人员：">孙向明</el-descriptions-item>
                    <el-descriptions-item label="最后修改时间：">2024-05-05 18:48</el-descriptions-item>
                    <el-descriptions-item label="最后修改人员：">李今颖</el-descriptions-item>
                </el-descriptions>
            </div>
        </div>
        <div class="contentInfo">
            <div class="title">合同基本信息</div>
            <el-descriptions class="descriptions" :column="4" size="default" border>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 公司
                        </div>
                    </template>
                    君禾泵业股份有限公司
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 合同单号
                        </div>
                    </template>
                    JH2402058
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 客户合同号
                        </div>
                    </template>
                    PL-24-2333
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 客户
                        </div>
                    </template>
                    重庆市汉斯安海酉阳进出口有限公司
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 订单类别
                        </div>
                    </template>
                    外贸大货订单
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 订单性质
                        </div>
                    </template>
                    非报关订单
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 业务员
                        </div>
                    </template>
                    祝仙梅
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 部门
                        </div>
                    </template>
                    国际二部
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 币种
                        </div>
                    </template>
                    人民币
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 付款方式
                        </div>
                    </template>
                    T/T 100% 40 days after ETD
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 价格条款
                        </div>
                    </template>
                    FOB
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 发票类型
                        </div>
                    </template>
                    增值税专用发票
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 账期(天)
                        </div>
                    </template>
                    120.00
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            本币汇率
                        </div>
                    </template>
                    1.0000
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            美元汇率
                        </div>
                    </template>
                    0.1409
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            税种
                        </div>
                    </template>
                    增值税13%(含税)
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 订单日期
                        </div>
                    </template>
                    2024/04/05
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 备货日期
                        </div>
                    </template>
                    2024/04/05
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 装运日期
                        </div>
                    </template>
                    2024/04/05
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            交易条件
                        </div>
                    </template>
                    工厂交货
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            生管交期
                        </div>
                    </template>
                    2024/04/05
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            样品交期
                        </div>
                    </template>
                    2024/04/05
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            包装确认日期
                        </div>
                    </template>
                    2024/04/05
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 运输方式
                        </div>
                    </template>
                    水路运输
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 运抵国
                        </div>
                    </template>
                    POLAND
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 起运港
                        </div>
                    </template>
                    Ningbo
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 目的港
                        </div>
                    </template>
                    Gdynia
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 板块
                        </div>
                    </template>
                    欧洲-中欧
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 生产基地
                        </div>
                    </template>
                    奉化厂区
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 跟单员
                        </div>
                    </template>
                    祝仙梅
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            绑单员
                        </div>
                    </template>
                    祝仙梅
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            <span>*</span> 包装员
                        </div>
                    </template>
                    祝仙梅
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            创建人
                        </div>
                    </template>
                    祝仙梅
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            绑单审核人
                        </div>
                    </template>
                    祝仙梅
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            ERP单号
                        </div>
                    </template>
                    kooriookami
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            信保类型
                        </div>
                    </template>
                    君禾泵业股份有限公司
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            合同总金额
                        </div>
                    </template>
                    31355.14
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            原币总金额
                        </div>
                    </template>
                    31355.14
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            原币总金额(折扣)
                        </div>
                    </template>
                    31355.14
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            USD总金额
                        </div>
                    </template>
                    31355.14
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            成本总金额
                        </div>
                    </template>
                    31355.14
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            税前总金额
                        </div>
                    </template>
                    31355.14
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            含税总金额
                        </div>
                    </template>
                    31355.14
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            RMB总金额
                        </div>
                    </template>
                    31355.14
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            其他增加款项
                        </div>
                    </template>
                    0
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            其他扣除款项
                        </div>
                    </template>
                    0
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            总税额
                        </div>
                    </template>
                    31355.14
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            商品总数量
                        </div>
                    </template>
                    kooriookami
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            总毛利金额
                        </div>
                    </template>
                    6489.86
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            总毛利率%
                        </div>
                    </template>
                    19.87
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            退税率
                        </div>
                    </template>
                    0.00
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            订单状态
                        </div>
                    </template>
                    已下单
                </el-descriptions-item>
                <el-descriptions-item>
                    <template #label>
                        <div class="cell-item">
                            备注
                        </div>
                    </template>
                    意大利博洛尼亚农机展 EIMA 样机
                    其中1-12做空机即可 需要蜂窝箱，以及大号蜂窝箱做外箱装机器
                </el-descriptions-item>
            </el-descriptions>
        </div>
        <div class="tabs">
            <el-tabs v-model="state.tabsCheckNum" class="demo-tabs" @tab-click="handleClick">
                <el-tab-pane label="商品清单" :name="0">
                    <div class="inventory">
                        <!-- <div class="btns">
                            <el-button @click="cardCheck" type="primary">料号卡片信息查看</el-button>
                            <el-button>HS CODE 信息查看</el-button>
                        </div> -->
                        <el-table :header-cell-class-name="headerCellClassName" :data="state.inventoryTable" border
                            style="width: 100%">
                            <el-table-column align="center" width="120" show-overflow-tooltip prop="date" label="项次"
                                sortable>
                                <template #default="{ row }">
                                    <span @click="cardCheck" style="color: #248BFF;cursor: pointer;">{{ row.date }}</span>
                                </template>
                            </el-table-column>
                            <el-table-column align="center" show-overflow-tooltip width="150" prop="pic" label="商品图号"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="120" prop="num" label="商品编号"
                                sortable>
                                <template #default="{ row }">
                                    <span style="color: #248BFF;cursor: pointer;">{{ row.num }}</span>
                                </template>
                            </el-table-column>
                            <el-table-column align="center" show-overflow-tooltip width="120" prop="productModel"
                                label="产品型号" sortable />
                            <el-table-column align="center" show-overflow-tooltip width="120" prop="isBonded" label="是否保税"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="120" prop="chineseName"
                                label="商品中文名" sortable />
                            <el-table-column align="center" show-overflow-tooltip width="200" prop="englishName"
                                label="商品英文名" sortable />
                            <el-table-column align="center" show-overflow-tooltip width="120" prop="unit" label="单位"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="120" prop="packagingNum"
                                label="包装货号" sortable />
                            <el-table-column align="center" show-overflow-tooltip width="120" prop="name" label="包装定牌"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="120" prop="name" label="销售数量"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="120" prop="name" label="原币单价"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="100" prop="name" label="RBM单价"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="120" prop="name" label="含佣原币单价"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="150" prop="name" label="成本单价（RMB）"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="120" prop="name" label="财务最低报价"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="90" prop="name" label="原币金额"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="140" prop="name" label="原币金额（折扣）"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="150" prop="name" label="成本金额（RMB）"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="100" prop="name" label="USD单价"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="100" prop="name" label="RMB金额"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="100" prop="name" label="USD金额"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="90" prop="name" label="折扣率%"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="90" prop="name" label="毛利率%"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="90" prop="name" label="总毛利"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="140" prop="name" label="财务最低毛利率%"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="90" prop="name" label="退税率%"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="90" prop="name" label="人工费"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="90" prop="name" label="制造费用"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="90" prop="name" label="包装费"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="120" prop="name" label="包装成本差额"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="120" prop="name" label="调整成本差额"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="90" prop="name" label="税前金额"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="90" prop="name" label="含税金额"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="90" prop="name" label="税额"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="90" prop="name" label="折后税额"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="90" prop="name" label="佣金金额"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="140" prop="name" label="商品订单类型"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="140" prop="name" label="开始合作日期"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="120" prop="name" label="合作方式"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="90" prop="name" label="贸易方式"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="130" prop="name" label="指定零件供应商"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="120" prop="name" label="业务开发类别"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="90" prop="name" label="是否返单"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="130" prop="name" label="是否库存免生产"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="90" prop="name" label="生管交期"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="110" prop="name" label="报价单类型"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="110" prop="name" label="报价单编号"
                                sortable />
                            <el-table-column align="center" show-overflow-tooltip width="90" prop="name" label="状态码"
                                sortable />
                        </el-table>
                    </div>
                </el-tab-pane>
                <el-tab-pane label="其他款项" :name="1">
                    <div class="other">
                        <el-table :data="state.otherTable" border style="width: 100%">
                            <el-table-column show-overflow-tooltip prop="nature" label="款项性质" sortable />
                            <el-table-column show-overflow-tooltip prop="describe" label="款项描述" sortable />
                            <el-table-column show-overflow-tooltip prop="rate" label="比率(%)" sortable />
                            <el-table-column show-overflow-tooltip prop="money" label="金额" sortable />
                            <el-table-column show-overflow-tooltip prop="remark" label="备注" sortable />
                        </el-table>
                    </div>
                </el-tab-pane>
            </el-tabs>
        </div>
        <el-dialog class="dialog" v-model="state.cardDialog.show" title="料号卡片信息" width="1000" :before-close="handleClose">
            <div class="top">
                <div class="title">君禾技术参数</div>
                <div class="content">
                    <el-descriptions width="60px" class="descriptions" :column="4" size="default" border>
                        <el-descriptions-item label="研发开发类别">新产品</el-descriptions-item>
                        <el-descriptions-item label="研发交付时间">2024/04/05</el-descriptions-item>
                        <el-descriptions-item label="证书型号"></el-descriptions-item>
                        <el-descriptions-item label="叠高">80mm</el-descriptions-item>
                        <el-descriptions-item label="是否带机封"></el-descriptions-item>
                        <el-descriptions-item label="电压">220V-240V</el-descriptions-item>
                        <el-descriptions-item label="频率">50Hz</el-descriptions-item>
                        <el-descriptions-item label="整机认证标准">德国：TUV/VDE</el-descriptions-item>
                        <el-descriptions-item label="环保要求">君禾欧盟环保要求</el-descriptions-item>
                        <el-descriptions-item label="壳体材料"></el-descriptions-item>
                        <el-descriptions-item label="漆包材料">铜线</el-descriptions-item>
                        <el-descriptions-item label="钢带材料"></el-descriptions-item>
                        <el-descriptions-item label="轴材料"></el-descriptions-item>
                        <el-descriptions-item label="前盖材料"></el-descriptions-item>
                        <el-descriptions-item label="电线规格">H07RN-F 3G1.0...</el-descriptions-item>
                        <el-descriptions-item label="外露线长">10.00</el-descriptions-item>
                        <el-descriptions-item label="插头规格">德国TUV防水插头</el-descriptions-item>
                        <el-descriptions-item label="机器附件"></el-descriptions-item>
                        <el-descriptions-item label="额定功率"></el-descriptions-item>
                        <el-descriptions-item label="最大流量">0.00</el-descriptions-item>
                        <el-descriptions-item label="最大扬程">0.00</el-descriptions-item>
                        <el-descriptions-item label="最大吸程">0.00</el-descriptions-item>
                        <el-descriptions-item label="最大颗粒">0.00</el-descriptions-item>
                        <el-descriptions-item label="跌落标准"></el-descriptions-item>
                        <el-descriptions-item :span="2" label="跌落方式"></el-descriptions-item>
                        <el-descriptions-item :span="2" label="颜色标准">君禾样本灰绿</el-descriptions-item>
                        <el-descriptions-item :span="1" label="技术要求说明"></el-descriptions-item>
                    </el-descriptions>
                </div>
            </div>
            <div class="btm">
                <div class="title">清洁技术参数</div>
                <div class="content">
                    <el-descriptions width="60px" class="descriptions" :column="4" size="default" border>
                        <el-descriptions-item label="额定流量L/min5"></el-descriptions-item>
                        <el-descriptions-item label="额定压力bar">君禾泵业股份有限公司</el-descriptions-item>
                        <el-descriptions-item label="频率HZ">50Hz</el-descriptions-item>
                        <el-descriptions-item label="产品功率W">ODM</el-descriptions-item>
                        <el-descriptions-item label="电压V">220V-240V</el-descriptions-item>
                        <el-descriptions-item label="电机铁芯外径mm"></el-descriptions-item>
                        <el-descriptions-item label="铁芯材料">Q195</el-descriptions-item>
                        <el-descriptions-item label="电机铁芯高度mm"></el-descriptions-item>
                        <el-descriptions-item label="电源线外露长度(m）">10</el-descriptions-item>
                        <el-descriptions-item label="插头类型">德国TUV防水插头</el-descriptions-item>
                        <el-descriptions-item label="电源线规格">铜线</el-descriptions-item>
                        <el-descriptions-item label="转轴材料">420不锈铁</el-descriptions-item>
                        <el-descriptions-item label="漆包线材料">铜线</el-descriptions-item>
                        <el-descriptions-item label="执行标准">德国：TUV/VDE</el-descriptions-item>
                        <el-descriptions-item label="是否有证书">H07RN-F 3G1.0...</el-descriptions-item>
                        <el-descriptions-item label="枪"></el-descriptions-item>
                        <el-descriptions-item label="枪头"></el-descriptions-item>
                        <el-descriptions-item label="枪杆"></el-descriptions-item>
                        <el-descriptions-item label="泡沫壶"></el-descriptions-item>
                        <el-descriptions-item label="透明过滤接头"></el-descriptions-item>
                        <el-descriptions-item label="美式花园接头"></el-descriptions-item>
                        <el-descriptions-item label="多功能接头"></el-descriptions-item>
                        <el-descriptions-item label="自吸过滤网"></el-descriptions-item>
                        <el-descriptions-item label="出水管"></el-descriptions-item>
                        <el-descriptions-item label="出水管材质"></el-descriptions-item>
                        <el-descriptions-item label="出水管长度m"></el-descriptions-item>
                        <el-descriptions-item label="进水管材质"></el-descriptions-item>
                        <el-descriptions-item label="进水管"></el-descriptions-item>
                        <el-descriptions-item :span="1" label="进水管长度m"></el-descriptions-item>
                    </el-descriptions>
                </div>
            </div>
        </el-dialog>
    </div>
</template>
<script setup >
import { reactive } from "vue";
import { useRoute } from "vue-router";
import AppPageTable, { useTableOption } from "@/components/AppPageTable2";
import request from "@/public/request";
import { ElMessage, ElMessageBox } from 'element-plus'

const route = useRoute();

const state = reactive({
    tabsCheckNum: 0,
    inventoryTable: [
        {
            date: 'JH2401878',
            num: 101003848,
            productModel: 'Q330B196M',
            isBonded: '非保税',
            chineseName: '花园泵配件一批',
            englishName: 'A batch of garden pump accessories',
            unit: '个',
            packagingNum: '4170438',
        },
        {
            date: 'JH2401878',
            num: 101003848,
            productModel: 'Q330B196M',
            isBonded: '非保税',
            chineseName: '花园泵配件一批',
            englishName: 'A batch of garden pump accessories',
            unit: '个',
            packagingNum: '4170438',

        },
        {
            date: 'JH2401878',
            num: 101003848,
            productModel: 'Q330B196M',
            isBonded: '非保税',
            chineseName: '花园泵配件一批',
            englishName: 'A batch of garden pump accessories',
            unit: '个',
            packagingNum: '4170438',

        },
        {
            date: 'JH2401878',
            num: 101003848,
            productModel: 'Q330B196M',
            isBonded: '非保税',
            chineseName: '花园泵配件一批',
            englishName: 'A batch of garden pump accessories',
            unit: '个',
            packagingNum: '4170438',

        },
    ],
    otherTable: [
        {
            nature: '款项性质款项性质...',
            describe: '款项描述款项描述款项描述款项描述款项描述...',
            rate: '101003848',
            money: 'Q330B196M',
            remark: "非保税"
        },
        {
            nature: '款项性质款项性质...',
            describe: '款项描述款项描述款项描述款项描述款项描述...',
            rate: '101003848',
            money: 'Q330B196M',
            remark: "非保税"

        },
        {
            nature: '款项性质款项性质...',
            describe: '款项描述款项描述款项描述款项描述款项描述...',
            rate: '101003848',
            money: 'Q330B196M',
            remark: "非保税"

        },
        {
            nature: '款项性质款项性质...',
            describe: '款项描述款项描述款项描述款项描述款项描述...',
            rate: '101003848',
            money: 'Q330B196M',
            remark: "非保税"

        },
    ],
    cardDialog: {
        show: false,
        data: {}
    }
})

//tbas切换
function handleClick(tab, event) {
    console.log(tab, event)
}

//dialog打开
function cardCheck() {
    state.cardDialog.show = true
}

//dialog关闭
function handleClose() {
    state.cardDialog.show = false
}

//商品清单table表头*样式
let map = {
    2: 'my-header-row-class',
    3: 'my-header-row-class',
    4: 'my-header-row-class',
    5: 'my-header-row-class',
    8: 'my-header-row-class',
    9: 'my-header-row-class',
    10: 'my-header-row-class',
    11: 'my-header-row-class',
    37: 'my-header-row-class',
    38: 'my-header-row-class',
    39: 'my-header-row-class',

}
const headerCellClassName = (data) => map[data.columnIndex]


</script>
<style lang="scss" scoped>
.info {
    width: 100%;
    min-height: 40px;
    border-radius: 2px;
    background: #FFFFFF;
    border: 1px solid #DCDCDC;
    padding: 9px 12px;

    .title {
        display: flex;

        .id {
            color: #000000D8;
            font-size: 15px;
            line-height: 22px;
            letter-spacing: 0px;
            text-align: left;
            font-weight: 500;

        }

        .state {
            display: flex;
            text-align: center;
            margin-left: 12px;

            .draft {
                width: 33px;
                height: 24px;
                border: 1px solid #DCDCDC;
                line-height: 24px;
            }

            .ReviewedState {
                display: flex;

                .ReviewedState-title {
                    // width: 57px;
                    height: 24px;
                    line-height: 16px;
                    border-radius: 2px;
                    background: #79B43C0F;
                    border: 1px solid #79B43C;
                    color: #79B43C;
                    padding: 4px 8px;
                    margin-right: 10px;
                }

                .toBeReviewed {
                    // width: 44px;
                    height: 24px;
                    line-height: 24px;
                    border-radius: 2px;
                    background: #79B43C0F;
                    border: 1px solid #79B43C;
                    color: #79B43C;
                    margin-left: 12px;
                }
            }
        }
    }

    .content {
        margin-top: 10px;
        padding: 0;
    }
}

.contentInfo {
    width: 100%;
    // height: 110px;
    padding: 8px 12px;
    background-color: #FFFFFF;
    margin-top: 8px;

    .title {
        height: 22px;
        font-size: 14px;
        line-height: 22px;
        border-left: 2px solid #409eff;
        padding-left: 4px;
        margin-bottom: 8px;
    }

    .descriptions {

        .cell-item {

            // position: relative;
            span {
                color: #ff0000;
                margin-right: 2px;
            }
        }

        // //伪元素
        // &::before {
        //     position: absolute;
        //     // left: 0;
        //     // top: 0;
        //     content: "*";
        //     color: #ff0000;

        // }
        :deep(.el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell) {
            width: 60px;
            font-weight: unset;
            font-size: 12px;
            padding: 7px 8px;
        }
    }




}

.tabs {
    width: 100%;
    background: #fff;
    padding: 0 12px;

    .demo-tabs>.el-tabs__content {
        padding: 32px;
        color: #6b778c;
        font-size: 32px;
        font-weight: 600;
    }

    .inventory {
        width: 100%;
        background: #fff;
        padding-bottom: 10px;

        .btns {
            margin-bottom: 10px;
        }
    }

    .other {
        width: 100%;
        background: #fff;
    }
}

.dialog {
    .top {
        padding-top: 8px;

        .title {
            height: 22px;
            font-size: 15px;
            line-height: 22px;
            padding-left: 10px;
            border-left: 2px solid #409eff;
            font-weight: 500;
            margin-left: 12px;
            margin-bottom: 8px;
        }

        .content {
            :deep(.el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell) {
                width: 60px;
                font-weight: unset;
                font-size: 12px;
                padding: 7px 8px;
            }
        }
    }

    .btm {
        padding-top: 8px;
        margin-top: 15px;

        .title {
            height: 22px;
            font-size: 15px;
            line-height: 22px;
            padding-left: 10px;
            border-left: 2px solid #409eff;
            font-weight: 500;
            margin-left: 12px;
            margin-bottom: 8px;
        }

        .content {
            :deep(.el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell) {
                width: 160px;
                font-weight: unset;
                font-size: 12px;
                padding: 7px 8px;
            }
        }
    }
}

:deep(.el-dialog) {
    padding: 0 0;
}

:deep(.el-dialog__header) {
    border-bottom: 1px solid #e8e8e8;
    padding: 7px 12px;
    font-family: 800;
}

:deep(.el-dialog__footer) {
    border-top: 1px solid #e8e8e8;
    padding: 8px 0;
    text-align: center;
}

:deep(.el-descriptions__label.el-descriptions__cell.is-bordered-label) {
    background-color: #f8f8f8;
}

:deep(.my-header-row-class) {

    &::before {
        content: "*";
        /* 内容是 * */
        color: red;
        /* 颜色是红色 */
        position: absolute;
        /* 使用绝对定位 */
        top: 7px;
        /* 定位在顶部 */
        left: 12px;
        /* 定位在左侧 */
        z-index: 1;
        /* 确保伪元素在其他内容之上 */
    }
}

:deep(.el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell) {
    padding: 4px 8px !important;
    width: 37px !important;
}

:deep(.el-descriptions__cell) {
    padding-bottom: 10px !important;
}
</style>